/*******************************************************************************
 * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Marc R. Hoffmann - initial API and implementation
 *
 *******************************************************************************/
package com.cyber.range.diffinfo;

import com.alibaba.fastjson.JSON;
import com.cyber.range.ast.ASTDiffGenerator;
import com.cyber.range.ast.ASTGenerator;
import com.cyber.range.ast.structure.MyDiffMethodNode;
import com.cyber.range.diffinfo.impl.GetDiffInfoServiceImpl;
import com.cyber.range.diffinfo.module.diff.DiffResult;
import org.eclipse.jdt.core.dom.SingleVariableDeclaration;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by kuohai on 2018/3/18.
 */
public class GitDiffUtils {
    public static String getDiffJson(){
        GetDiffInfoServiceImpl getDiffInfoService = new GetDiffInfoServiceImpl();
        DiffResult diffResult = getDiffInfoService.getDiffInfo();
        String diffJson = JSON.toJSONString(diffResult);
        return diffJson;
    }
}
